package com.zeros.usercenter.service

import com.zeros.usercenter.data.protocol.UserInfo
import rx.Observable

/**
 *  用户模块 业务接口  ▏2018/5/16.
 *  wc
 */
interface UserService {

    //用户注册
    fun register(mobile: String, pwd: String, verifyCode: String): Observable<Boolean>

    //用户登录
    fun login(mobile: String, pwd: String, pushId: String): Observable<UserInfo>

    //忘记密码
    fun forgetPwd(mobile: String, verifyCode: String): Observable<Boolean>

    //重置密码
    fun resetPwd(mobile: String, pwd: String): Observable<Boolean>

    //编辑用户资料
    fun editUser(userIcon: String, userName: String, userGender: String, userSign: String): Observable<UserInfo>

}